#! /bin/sh
### BEGIN INIT INFO
# Provides:          local.autostart
# Required-Start:    $start
# Required-Stop:     $shutdown
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the heatctrl
# Description:       controls the heat
### END INIT INFO
# Author: Simon Jentzsch

# Aktionen
case "$1" in
start)
echo "Starting heatctrl ... "
/opt/heatctrl/start.sh
;;
stop)
echo "Killing heatctrl ..."
killall java
;;
*)
echo "Usage: /etc/init.d/heatctrl {start|stop}"
exit 1
;;
esac
exit 0